<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户信息修改页面</title>
</head>
<style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }
    form {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    input[type="text"], input[type="submit"], input[type="radio"] {
        padding: 8px;
        margin: 6px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%;
        box-sizing: border-box;
    }
</style>
<body>

<FORM action="EditUserServlet" method= "post" >
    <input type="hidden" name="userid" value="${user.userid}" readonly="readonly">
    <TABLE>
        <tr>
            <td>用户名：</td>
            <td><INPUT type="text" name="username" value="${user.username}"></td>
        </tr>

        <tr>
            <td>性    别：</td>
            <td>
                <INPUT type="radio" name="sex" value="1" <c:if test="${user.sex==1}">checked</c:if>>男
                <INPUT type="radio" name="sex" value="0" <c:if test="${user.sex==0}">checked</c:if>>女
            </td>

        </tr>

        <tr>
            <td>手 机 号：</td>
            <td><INPUT type="text" name="phone" value="${user.phone}"></td>
        </tr>

        <tr>
            <td>收货地址:</td>
            <td><input type="text"  name="address" value="${user.address}"></td>
        </tr>

        <tr>
            <td><INPUT TYPE="submit" value="提交" name="submit"></td>
        </tr>
    </TABLE>
</FORM>



</body>
</html>